package com.jf.blog_jf04.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jf.blog_jf04.bean.Blog;
import com.jf.blog_jf04.bean.Timeline;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TimelineMapper {
    List<Timeline> getTimeline(Integer userinfoId);

    List<Blog> getBlogByYear(@Param("userinfoId") Integer userinfoId, @Param("year") String year);

    IPage<Blog> getBlogByYearPage(@Param("page") Page page, @Param("userinfoId") Integer userinfoId, @Param("year") String year);

    List<Timeline> getBlogCountByCategory(Integer userinfoId);
}
